home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_ImageMagick.idb / usr / freeware / include / magick / error.h.z / error.h
Encoding:
C/C++ Source or Header  |  1999-01-26  |  774 b   |  43 lines

  1. /*
  2.   Error typedef declarations.
  3. */
  4. typedef void
  5.   (*ErrorHandler)(const char *,const char *);
  6.  
  7. /*
  8.   Enumeration declarations.
  9. */
  10. typedef enum
  11. {
  12.   UndefinedError,
  13.   ResourceLimitError = 400,
  14.   XServerError = 405,
  15.   OptionError = 410
  16. } ErrorType;
  17.  
  18. typedef enum
  19. {
  20.   UndefinedWarning,
  21.   ResourceLimitWarning = 300,
  22.   XServerWarning = 305,
  23.   OptionWarning = 310,
  24.   PluginWarning = 315,
  25.   MissingPluginWarning = 320,
  26.   CorruptImageWarning = 325,
  27.   FileOpenWarning = 330
  28. } WarningType;
  29.  
  30. /*
  31.   Error declarations.
  32. */
  33. extern Export int
  34.   SetErrorStatus(int);
  35.  
  36. extern Export ErrorHandler
  37.   SetErrorHandler(ErrorHandler),
  38.   SetWarningHandler(ErrorHandler);
  39.  
  40. extern Export void
  41.   MagickError(const int,const char *,const char *),
  42.   MagickWarning(const int,const char *,const char *);
  43.